package retrofit2.spring.annotation;

import org.springframework.context.annotation.Import;
import retrofit2.spring.register.RetrofitClientsRegister;

import java.lang.annotation.*;

/**
 * EnableRetrofitClients
 * <p>
 * 开启RetrofitClient扫描
 *
 * @author archx
 * @since 2020/7/2 11:16
 */
@Target(ElementType.TYPE)
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
@Import(RetrofitClientsRegister.class)
public @interface EnableRetrofitClients {

    String[] scanPackages() default {};

    Class<? extends Annotation> annotation() default RetrofitClient.class;
}
